**The code should be run in this order of all depancies to be created**

*Main Code
*IPEDS
UMETRICS/organize_ipeds_ein.do /* makes organize_ipeds_ein.dta */


*UMERTICS Data
UMETRICS/export_umetrics.sas /* Pulls the Raw Data */
UMETRICS/umetrics_combined_v2.do /* makes final_multicfda.dta and core_award2019q1.dta and core_employee2019q1.dta*/
  *uses from IRIS: cfda- agency.dta, sub_org_singlecfda_fields_classified_new.dta
  *uses from IRIS: identify_funding_type_from_source_7_1.do, cfda_all.dta, singleaudit_cfda.dta
UMETRICS/core_employee_pik.do /* makes core_employee2018q4_pik.dta */
UMETRICS/cfda_clusters.do /* makes cfda_clusters.dta */


*Put Togather LEHD Data
See LEHD/RUNME_lehd_job_history_MASTER.do /* makes  iris_lehd_jobhistory_2018q4.dta */


*Put Togather W2 Data
W2/w2_usiris.sas /* Gets Raw W2 Data */
W2/w2_eins.do /* makes w2_eins.csv */
W2/w2_br_usiris.sas /* Gets Raw SSEL Data */
W2/lbd_w2_eins.sas /* Gets Raw LBD Data */

W2/create_lehd_ein_w2_firmid_xwalk.do /* makes lehd_ein_firm_age_size_naics.dta */
W2/create_w2_ein_firmid_xwalk.do /* makes w2_ssl_`year'_usiris_2018q4_dedup.dta */
W2/getNAICS_lbd.do /* makes ein_naics_`year'.dta */

W2/iris_w2_jobhistory.do /* makes iris_w2_jobhistory_2018q4 */


*Make Combine File
combine_w2_lehd.do /* combines the LEHD and W2 histroy files */
  *uses cpi_quarterly.csv, interleave_quarter_lookup.xlsx, from IPEDS uni_carnegie_class.dta and uni_carnegie_class_mode_one_per_ein.dta

*Run Setup
setup_for_reg.do /* adds shocks */
  *uses from IRIS: singleaudit_cfda.dta, cfda_proportion.dta
setup_for_reg_pos_shocks.do /* adds postive shocks */
  *uses from IRIS: employee_shocks_positive.dta
setup_for_reg_all_neg_shocks_for_labs.do /* adds negrive shocks but keep people after the shock */
  *uses from IRIS: singleaudit_cfda.dta, cfda_proportion.dta

*Run analysis
analysis.do
  *uses from IRIS: grant_expiration.dta 
sumstats.do


*Other code
ht_entre_placebo
see RUNME_placebo.do